package com.sl.au.entity;

import java.util.Date;

import javax.persistence.*;

/**
 * 投标情况表
 */
@Entity
@Table(name = "sl_crm_bidRecord")
public class BidRecord extends Root {
	/** 投标单位 */
	@Column(name = "sBidUnit", nullable = false)
	private String bidUnit;
	
	/** 价格 */
	@Column(name = "sPrice")
	private String price;

	/** 交货期 */
	@Column(name = "dDeliveryDate")
	private Date deliveryDate;


	/**中标单位 */
	@Column(name = "sWinner")
	private String winner;
	
	/**其他 */
	@Column(name = "sOther")
	private String other;

	@ManyToOne
    @JoinColumn(name="bid_id")//加入一列作为外键
    private Bid bid;

	public String getBidUnit() {
		return bidUnit;
	}

	public void setBidUnit(String bidUnit) {
		this.bidUnit = bidUnit;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public Date getDeliveryDate() {
		return deliveryDate;
	}

	public void setDeliveryDate(Date deliveryDate) {
		this.deliveryDate = deliveryDate;
	}

	public String getWinner() {
		return winner;
	}

	public void setWinner(String winner) {
		this.winner = winner;
	}

	public String getOther() {
		return other;
	}

	public void setOther(String other) {
		this.other = other;
	}

	public Bid getBid() {
		return bid;
	}

	public void setBid(Bid bid) {
		this.bid = bid;
	}

	
	
	
    
}
